Ext.define('pm.store.UserProjects', {
    extend: 'Ext.data.Store',
    model: 'pm.model.UserProject',
	autoLoad: true,
	/*autoSync: true,

	proxy: {
	    type: 'ajax',
	    api: {
	        read: 'data/userprojects.json',
	        update: 'data/userprojects.json'
	    },
	    reader: {
	        type: 'json',
	        root: 'projects',
	        successProperty: 'success'
	    }
	},*/
	data: [
        {
        	id: 1, 
        	user_id: 1,
            project_id: 1,
            project_name: "project 1",
            project: {
                id: 1,
                name: 'first', 
                desc: 'ed@sencha.com', 
            }
        },
        {
        	id: 2, 
        	user_id: 2,
            project_id: 1,
            project_name: "project 1",
            project: {
                id: 1,
            	name: 'Second project', 
            	desc: 'hghfgh', 
            }
        },
        {
        	id: 3, 
            user_id: 1,
            project_id: 2,
            project_name: "project 2",
        },
        {
        	id: 1, 
            user_id: 1,
            project_id: 2,
            project_name: "project 1",
        },
    ]
});